const btnEle = document.querySelector('.btn')
const nameEle = document.querySelector('.username')

btnEle.onclick = ()=>{
    $.ajax({
        type:'get',
        url:'http://localhost:3000/userLogin2',
        data:{
            name:nameEle.value
        },
        success:()=>{
            location.href = `http://localhost:3000/main2`

        }
    })
}